package com.fjsh.web;

import com.fjsh.bean.LoginUser;
import com.fjsh.service.ActivitiService;
import com.fjsh.utils.SecurityUtils;
import com.fjsh.vo.ActCustomVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

@RestController
public class ActivitiController {

    @Resource
    private ActivitiService activitiService;

    @GetMapping("/")
    public List<ActCustomVO> getActCustomList(){
        LoginUser loginUser = SecurityUtils.getLoginUser();
        System.out.println(loginUser);
        System.out.println(1/0);
        return activitiService.getActCustomList();
    }

}
